<div id="data_page" class="in_page">
	<div class="panel panel-default">
  <div class="panel-body">
 
	
	
	
   <a href="{:U('Apt/fangxing')}?id={$id}"><button type="button" class="btn btn-sm btn-primary ">添加房型图</button></a>  
  
   




  
  </div>

</div>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th>#</th>
            <th>房型图</th>
            <th>推荐</th>
            <th>户型</th>
            <th>价格</th>
            <th>面积</th>
            <th>评价</th>         
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          
      <volist name="list" id="data"  key="$key" >     
		  <tr>
            <th scope="row">{$key+1}</th>
            <th><img src="{$data.src}" style="width: 240px; height: 80px;"></th>
            <th>{$data.tuijian}</th>
            <th>{$data.jiage}</th>
            <th>{$data.huxing}</th>
            <th>{$data.mianji}</th>
            <th>{$data.pingjia}</th>
            
            <th>
				 <a href="{:U('Apt/fangxingup')}?id={$data.id}"> <button type="button" class="btn btn-primary btn-xs">修改</button></a>  				 
				 <a href="{:U('Apt/delfangxing')}?id={$data.id}">  <button type="button" class="btn btn-danger btn-xs">删除</button></a>  
  			</th>
          </tr>
          
     </volist>        
          
        </tbody>
      </table> 
	  	<style>
 .pagelist{ text-align:right;  padding:7px 0;}
  .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2; text-decoration: none;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}


</style>
  
	<nav>
	
			<div class="pagelist">
		    {$page}
		   </div>
	
	</nav>
</div>